package com.zhuojy.equity.mall.admin.common.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuojy.equity.mall.admin.common.entity.TPosition;
import com.zhuojy.equity.mall.admin.common.entity.TUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:LYL
 * @Date 2024/3/31 19:06
 * 报销表
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_expense_account")
public class TExpenseAccountPO implements Serializable {
    private static final long serialVersionUID = -6685981603051327927L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Integer sponsorId;
    private String title;
    private Integer moneyType;
    private Integer expenseType;
    private Integer status;
    private BigDecimal expenseMoney;
    private BigDecimal paidMoney;
    private String remark;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String attachment;
    private String approver;
    private String carbon;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date startDateTwo;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endDateTwo;

    @TableField(exist = false)
    private TPosition tposition;
    @TableField(exist = false)
    private TUser tuser;

}
